<?php

	/**
	 *  config db connection
	 */
	
	$server = 'localhost';
	$user = 'root';
	$pass = 'root_access';
	$db = 'chat';
	
	// connect
	mysql_connect($server, $user, $pass) or die(mysql_error());
	
	// select db
	mysql_select_db($db) or die(mysql_error());
	
	// set charset
	mysql_query('set names utf8');

?>